<!--右侧内容开始-->
<div>
    <br/>
    <ol class="breadcrumb">
        <li class="active"><span class="glyphicon glyphicon-home" style="color:#23527c"></span>&nbsp;<mainpage></mainpage></li>
        <li class="active">运维工作台 / 参数配置管理 / 规则参数管理 / 无效用户管理</li>
    </ol>

    <ul class="nav nav-tabs marT15">
      <li role="presentation" class="active"><a href="#/invalidUserimport" style="color: #555;">无效用户导入</a></li>
      <li role="presentation"><a href="#/invalidUserManage" style="color:#555;">无效用户列表</a></li>
   </ul> 
        <form class="clearfix form-inline">
            <div class="input-group left marT15 marR10">
                  <span class="search-name">时间选择</span>
                  <div class="controls">
                      <div class="input-prepend input-group">
                          <span class="add-on input-group-addon"><i class="glyphicon glyphicon-calendar fa fa-calendar"></i></span><input type="text" readonly style="width: 155px"  id="invalidDate" class="form-control" />
                          <span class="input-group-addon" ng-click='clearTime()'>清空</span>
                      </div>
                  </div>
                  
            </div>
            <div class="left marR10 marT15">
                <span class="search-name">导入文件</span>
                <input type="text" class="form-control1" placeholder="请输入文件名称" 
                ng-keyup='search($event)'
                ng-model="searchData.fileName">
            </div>
            <div class="left marT15 marR10">
                <span class="search-name">导入人</span>
                <input type="text" class="form-control1" placeholder="请输入导入人" 
                ng-keyup='search($event)'
                ng-model="searchData.userName">
            </div>
            <!--<div class="input-group line1 left">
                <span class="input-group-addon">号码</span>
                <input type="text" class="form-control" placeholder="请输入号码">
            </div>-->
             <a href="javascript:;" class=" btn btn-sm btn-primary left marR10 marT15" id="search" ng-click='search()'><span class="glyphicon glyphicon-search"></span></a>
         </form>

            <div class="row marT15">          
                <div class="left center" style="margin: 0px 20px 0px 15px;">
                    <a  class="btn btn-danger btn-sm" data-toggle="modal" data-target="" ng-click="changeStstus('删除')" id="add"  >删除</a></td>
                </div>
                <div class="left center" style="margin: 0px 20px 0px 0px;">
                    <a class="btn btn-success btn-sm"
                       ng-click='changeStstus("生效")'
                      >有效</a>
                </div>
                <div class="left center" style="margin: 0px 20px 0px 0px;">
                    <a class="btn btn-warning btn-sm"
                       ng-click='changeStstus("失效")'
                       >无效</a>
                </div>
                <div class="left center" style="margin: 0px 20px 0px 0px;">
                    <a class="btn btn-primary btn-sm"  data-toggle="modal" data-target="#add1" ng-click="qix()">导入</a></td>
                </div>
            </div>

     <div class="table-box">

            <table class="table table-bordered table-striped text-center bg-info marT15">
                <thead>
                <tr class="info">
                    <th class="text-center">    
                    <input type="checkbox" 
                    ng-model="all" 
                    style="vertical-align: text-bottom;" id="all">全选
                    </th>
                    <th class="text-center">序号</th>
                   <!--  <th class="text-center">无效用户号码</th>
                    <th class="text-center">产生原因</th> -->
                    <th class="text-center">导入文件名称</th>
                    <th class="text-center">导入时间</th>
                    <th class="text-center">导入人</th>
                    <th class="text-center">状态</th>
                </tr>
                </thead>
                <tbody id="appList">
                <tr ng-repeat="item in result">
                    <td>
                        <input type="checkbox" name="check" class="check" 
                        ng-checked="all" 
                        ng-click="check()" 
                        ng-model="seals.sara">
                    </td>
                    <td>{{$index+1}}</td>
                  <!--   <td class="w115">{{item.fileName}}</td>
                    <td class="w85">{{item.uptime}}</td> -->
                    <td class="w115">{{item.fileName}}</td>
                    <td style="min-width: 200px;">{{item.uptime}}</td>
                    <td class="w70">{{item.userName}}</td>
                    <td>
                        <span ng-if='"0"==item.status' >无效</span>
                        <span ng-if='"1"==item.status' >有效</span>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>

            <page></page>

<!--右侧内容结束-->
</div>
<div class="modal fade" id="add1" tabindex="-1" role="dialog" aria-labelledby="add11">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" >导入无效用户文件</h4>
            </div>
            <div class="modal-body bg-info" style="margin-bottom: 0px;"> 
                <div class="clearfix row marB15">
                   <span class="col-xs-3">
                       <div class="input-group  text-right">
                           导入文件格式：
                       </div>
                   </span>
                   <span class="col-xs-9">
                       <label class="radio-inline">
                           <input type="radio" name="inlineRadioOptions"  value="option1" id="txt" checked> txt文件
                       </label>
                       <label class="radio-inline">
                           <input type="radio" name="inlineRadioOptions"  value="option1" id="csv"> csv文件
                       </label>
                       <label class="radio-inline">
                           <input type="radio" name="inlineRadioOptions"  value="option1" id="excel"> excel文件
                       </label>
                   </span>
                 </div>
                 <div class="row">
                   <span class="col-xs-3">
                       <div class="input-group text-right">
                           请选择文件：
                       </div>
                   </span>
                    <span class="col-xs-9">
                          <form name="form_upload" id="uploadForm" method="post" enctype="multipart/form-data">
                          <input name="file" type="file" id="file" />
                          <input name="fileType" type="text" value="无效用户" style="display: none;"/>
                         </form>
                         <br>
                       <p>文件格式：用户号码|无效用户说明，csv使用“,”分隔，每行一条记录，其中Excel的文件格式为A列填用户号码，B列填无效用户说明，每行一条记录。</p>
                    </span> 
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default btn-sm" data-dismiss="modal">取消</button>
                    <button id="uploadBtn" type="button" class="btn btn-primary btn-sm" ng-click="daoru()">导入</button>
                </div>
            </div>
        </div>
 
</div>
<!-- 添加程序结束 -->
<!-- 编辑程序 -->
<div class="modal fade" id="edit" tabindex="-1" role="dialog" aria-labelledby="edit">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="add11">添加</h4>
            </div>
            <div class="modal-body">
                <div class="clearfix">
                  <span class="col-xs-6">
                       <div class="input-group  left">
                           <span class="input-group-addon">敏感词名称 ：</span>
                           <input type="text" class="form-control" placeholder="法轮功">
                       </div>
                   </span>
                   <span class="col-xs-6">
                       <div class="input-group  left">
                           <span class="input-group-addon">状态</span>
                           <select class="form-control">
                               <option >待生效</option>
                               <option >生效</option>
                           </select>
                       </div>
                   </span>
                </div>
                <div class="marT15 marB15 clearfix">
                   <span>
                       <label class="left"><span>敏感词过滤说明 ：</span></label>
                        <textarea class="left form-control">邪教过滤</textarea>
                   </span>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default btn-sm" data-dismiss="modal">取消</button>
                    <button type="button" class="btn btn-primary btn-sm">保存</button>
                </div>
            </div>
        </div>
    </div>
</div>
<!--编辑程序结束-->
<!-- 参数添加结束 -->
<!-- 提示框 -->
<div class="modal fade" id="delete">
    <div class="modal-dialog">
        <div class="modal-content message_align">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
                <h4 class="modal-title">提示信息</h4>
            </div>
            <div class="modal-body">
                <p>您确认删除吗？</p>
            </div>
            <div class="modal-footer">
                <input type="hidden" id="url"/>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                <a  ng-click="changeStstus('key')" class="btn btn-primary" data-dismiss="modal">确定</a>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<!-- 提示框结束 -->

<!-- 加载提示框 -->
<div id="statusTip" ng-style='statusLoad'>
    <div id="statusBox">
     <img src="img/load.gif" style="width:50px; height:50px; position: relative; left:55px; margin-bottom: 15px;"><p style="color: #fff;">正在{{loadStatus}}，请稍候....</p>
    </div>
</div>
<!-- 加载框 -->
  <span class='loaded' ng-show='loaded'><img  src="img/load.gif"></span>
<!-- 加载框 完成-->